
<h:form xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:p="http://primefaces.prime.com.tr/ui">

	<p:resources/>
	<p:menubar>

		<p:submenu label="#{identity.isLoggedIn() ? 'Welcome, '.concat(credentials.username) : ''}" rendered="#{identity.isLoggedIn()}">
			<p:menuitem ajax="false" value="Logout!!" action="#{navigationMenuControllerBean.logout()}"></p:menuitem>
		</p:submenu>
		
		<p:submenu label="Navigate" rendered="#{identity.isLoggedIn()}">		
			<p:menuitem value="Home" action="#{navigationMenuControllerBean.goHome()}" ajax="false"></p:menuitem>
		</p:submenu>

	</p:menubar>

</h:form>